/*
 * ListeningThread.h
 *
 *  Created on: Nov 2, 2012
 *      Author: lucas
 */

#ifndef LISTENINGTHREAD_H_
#define LISTENINGTHREAD_H_

#include "../common/Thread.h"
#include "ListeningSocket.h"

class Server;

class ListeningThread: public Thread {
private:
	ListeningSocket lsck;
	Server& server;
	ListeningThread(const ListeningThread& lt);
	ListeningThread& operator=(const ListeningThread& lt);
public:
	ListeningThread(int puerto, Server& s);
	virtual ~ListeningThread();
	void ejecutar();
	void parar();
};

#endif /* LISTENINGTHREAD_H_ */
